# Maintainer: Antonio Rojas <arojas@archlinux.org>

_name=JuPyMake
pkgbase=jupymake
pkgname=python-jupymake
pkgver=0.9
pkgrel=19
pkgdesc='A Python interface to Polymake'
arch=(loong64 x86_64)
url='https://github.com/sebasguts/JuPyMake'
license=(GPL2)
depends=(gcc-libs
         glibc
         polymake
         python)
makedepends=(python-build
             python-installer
             python-setuptools
             python-wheel)
source=(https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz)
sha256sums=('4c756cd6a6056a20cd71f7b5e463c79dad0257241bbd32a40b750882fafdb545')

build() {
  cd $_name-$pkgver
  python -m build --wheel --no-isolation
}

package_python-jupymake() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
